package com.donge.api;

import com.donge.bean.User;
import org.springframework.web.bind.annotation.*;

public interface IUserService {
    @GetMapping("/hello")
    String hello();

    @GetMapping("/hello1")
    String hello1(@RequestParam("name") String name);

    @PostMapping("/user2")
    User addUser2(@RequestBody User user);

    @PutMapping("/user2")
    void updateUser2(@RequestBody User user);

    @DeleteMapping("/user2/{id}")
    void deleteUser2(@PathVariable("id") Integer id);
}
